package com.css.dzj.zfjg.modules.clue.vo;

import com.github.stupdit1t.excel.verify.AbstractVerifyBuidler;
import com.github.stupdit1t.excel.verify.CellVerifyEntity;
import com.github.stupdit1t.excel.verify.DateTimeVerify;
import com.github.stupdit1t.excel.verify.StringVerify;

/**
 * @author Leon
 */
public class ClueVerifyBuilder extends AbstractVerifyBuidler {

    private static ClueVerifyBuilder builder = new ClueVerifyBuilder();

    public static ClueVerifyBuilder getInstance(){
        return builder;
    }

    /**
     * 定义列检验实体：提取的字段、提取列、校验规则
     */
    private ClueVerifyBuilder() {
        cellEntitys.add(new CellVerifyEntity("enterpriseName","A", new StringVerify("企业名称", true)));
        cellEntitys.add(new CellVerifyEntity("enterpriseIdNumber","B", new StringVerify("企业证件号码", true)));
        cellEntitys.add(new CellVerifyEntity("enterpriseIdType","C", new StringVerify("企业证件类型", true)));
        cellEntitys.add(new CellVerifyEntity("creditClueReasons","D", new StringVerify("信用线索原因", true)));
        cellEntitys.add(new CellVerifyEntity("negativeDetails","E", new StringVerify("涉及负面详情", true)));
        cellEntitys.add(new CellVerifyEntity("provincial","F", new StringVerify("省级", true)));
        cellEntitys.add(new CellVerifyEntity("municipalLevel","G", new StringVerify("市级", true)));
        cellEntitys.add(new CellVerifyEntity("countyLevel","H", new StringVerify("县级", true)));
        cellEntitys.add(new CellVerifyEntity("nationalStandard1Name","I", new StringVerify("国标一级行业名称", true)));
        cellEntitys.add(new CellVerifyEntity("nationalStandard2Name","J", new StringVerify("国标二级行业名称", true)));
        cellEntitys.add(new CellVerifyEntity("nationalStandard3Name","K", new StringVerify("国标三级行业名称", true)));
        cellEntitys.add(new CellVerifyEntity("nationalStandard4Name","L", new StringVerify("国标四级行业名称", true)));
        cellEntitys.add(new CellVerifyEntity("evaluationDate","M", new DateTimeVerify("评估日期","yyyy-MM-dd", true)));
        cellEntitys.add(new CellVerifyEntity("status","N", new StringVerify("信用评估状态", true)));
        // 必须调用
        super.init();
    }
}
